// SpecialChar.cpp : implementation of the CSpecialChar class
//

#include "stdafx.h"
#include "SpecialChar.h"

CSpecialChar::CSpecialChar()
{
	// TODO: add member initialization code here
	
}
CSpecialChar::~CSpecialChar()
{

}
bool CSpecialChar::GetAllow() const
{
	return m_allow;
}
void CSpecialChar::SetAllow(bool nAllow)
{
	m_allow=nAllow;
}
bool CSpecialChar::GetMustStart() const
{
	return m_mustStart;
}
void CSpecialChar::SetMustStart(bool nMustStart)
{
	m_mustStart=nMustStart;
}
bool CSpecialChar::GetCheckMin() const
{
	return m_checkMin;
}
void CSpecialChar::SetCheckMin(bool nCheckMin)
{
	m_checkMin=nCheckMin;
}
int CSpecialChar::GetMinValue() const
{
	return m_minValue;
}
void CSpecialChar::SetMinValue(int nMinValue)
{
	m_minValue=nMinValue;
}

bool CSpecialChar::GetCheckMax() const
{
	return m_checkMax;
}
void CSpecialChar::SetCheckMax(bool nCheckMax)
{
	m_checkMax=nCheckMax;
}
int CSpecialChar::GetMaxValue() const
{
	return m_maxValue;
}
void CSpecialChar::SetMaxValue(int nMaxValue)
{
	m_maxValue=nMaxValue;
}
bool CSpecialChar::GetOnlyChar() const
{
	return m_onlyChar;
}
void CSpecialChar::SetOnlyChar(bool nOnlyChar)
{
	m_onlyChar=nOnlyChar;
}
GString CSpecialChar::GetOnlyCharValue() const
{
	return m_onlyCharValue;
}
void CSpecialChar::SetOnlyCharValue(GString nOnlyCharValue)
{
	m_onlyCharValue=nOnlyCharValue;
}
bool CSpecialChar::GetExcludedChar() const
{
	return m_excludedChar;
}
void CSpecialChar::SetExcludedChar(bool nExcludedChar)
{
	m_excludedChar=nExcludedChar;
}
GString CSpecialChar::GetExcludedCharValue() const
{
	return m_excludedCharValue;
}
void CSpecialChar::SetExcludedCharValue(GString nExcludedCharValue)
{
	m_excludedCharValue=nExcludedCharValue;
}

void CSpecialChar::MapXMLTagsToMembers()
{
	MapAttribute(&m_allow,"allow");
	MapAttribute(&m_mustStart,"mustStart");
	MapAttribute(&m_checkMin,"checkMin");
	MapAttribute(&m_minValue,"minValue");
	MapAttribute(&m_checkMax,"checkMax");
	MapAttribute(&m_maxValue,"maxValue");
	MapAttribute(&m_onlyChar,"onlyChar");
	MapAttribute(&m_onlyCharValue,"onlyCharValue");
	MapAttribute(&m_excludedChar,"excludedChar");
	MapAttribute(&m_excludedCharValue,"excludedCharValue");
}
IMPLEMENT_FACTORY(CSpecialChar, SpecialChar);